import java.io.*;

public class IO2 {
    public static void main(String[] args) throws IOException {
      try(InputStream inputStream = new FileInputStream("text.txt")){
byte[] buffer = new byte[1024];
int n = inputStream.read(buffer);
          System.out.println(n);
      }
      catch (IOException e){
e.printStackTrace();
      }



    }
}
